*** Settings ***
Documentation           通过cli获取network_adapter的资源树
Resource                ../../test_function/cli/ssh.robot
Resource                ../../test_function/resource.robot
Suite Setup             Open SSH Connection
Suite Teardown          Close SSH Session    ${ssh}

*** Variables ***
${service}              bmc.kepler.network_adapter
${input}                ${BUSCTL_TREE} ${service}
${expected_output}      /bmc/kepler/Managers/${MANAGER_ID}

*** Test Cases ***
Get NetworkAdapters Tree Via cli
    [Documentation]    通过ssh查询network_adapter组件的资源树
    [Tags]    Get_Network_Adapter_Via_cli

    ${rsp}=    Execute SSH Command    ${ssh}    ${input}
    Should Not Be Empty    ${rsp}    msg=未获取network_adapter组件的资源树
    Log    network_adapter组件信息: \n${rsp}    console=False
    # Should Contain    ${rsp}    ${expected_output}    msg=未找到network_adapter组件资源树

